<!DOCTYPE html>
<html>
  <head>
    <meta charset='utf-8'>
    <title>Mocha</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
  </head>
  <body>
    <div id="mocha"></div>

    <!-- include test library files here... -->
    <script src="../node_modules/mocha/mocha.js"></script>
    <script src="../node_modules/chai/chai.js"></script>

    <!-- include lib files here... -->
    <script src='../locale.js'></script>

    <!-- configure mocha here... -->
    <script>
      mocha.setup({
        ui: 'bdd'
      });
      // Don't complain about known globals
      mocha.globals(['jQuery*', 'router']);

      chai.use(function (chai, utils) {
        var flag = utils.flag;
        chai.Assertion.addMethod('classed', function (className) {
          this.assert(
            flag(this, 'object').classed(className),
            'expected #{this} to be classed #{exp}',
            'expected #{this} not to be classed #{exp}',
            className
          );
        });
      });
    </script>

    <!-- load data here... -->
    <script src="fixtures/data.js"></script>

    <!-- include spec files here... -->
    <script src="lib/index.js"></script>

    <!-- run mocha here... -->
    <script>
      (window.mochaPhantomJS || window.mocha).run();
    </script>
  </body>
</html>
